package com.apisix.service.repository;

import com.apisix.service.entity.Consumer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface ConsumerRepository extends JpaRepository<Consumer, Long> {
    Optional<Consumer> findByAppId(String appId);
    boolean existsByAppId(String appId);
} 